package com.hkts.management.config;

import com.hkts.management.returnfee.service.IHktsReturnFailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @ClassNameScheduleTask
 * @Description
 * @Author yck
 * @Date2021-05-21 16:39
 * @Version V1.0
 **/
@Configuration
@EnableScheduling
public class ScheduleTask {
    /**
     * 轮询处理退款失败的记录
     */
    @Autowired
    public IHktsReturnFailService iHktsReturnFailService;
    @Scheduled(cron = "0 0/5 * * * ?")
    private void configureTasks() throws Exception {
        iHktsReturnFailService.handlerFaileRefund();
    }

}
